<template>
  <div>
    <div class="home_container">
      <!-- 二级路由页面 -->
   <router-view></router-view>
    <!-- 下面底部导航 -->
    <van-tabbar v-model="active" >
      <van-tabbar-item icon="wap-home-o" to="/home/home">首页</van-tabbar-item>
      <van-tabbar-item icon="search" to="/home/list">找房</van-tabbar-item>
      <van-tabbar-item icon="notes-o" to="/home/news">资讯</van-tabbar-item>
      <van-tabbar-item icon="user-o" to="/home/profile">我的</van-tabbar-item>
    </van-tabbar>
  </div>
  </div>
</template>

<script>
export default {
  name: 'Home',
  data () {
    return {
      active: 0
    }
  }
}
</script>
<style scoped>
.home_container {
  padding-bottom: 50px;
}
/* 底部导航上边框 */
.van-tabbar {
  border-top: 1px solid #f8f8f8;
}
.my-swipe .van-swipe-item {
    color: #fff;
    font-size: 20px;
    line-height: 150px;
    text-align: center;
    background-color: #39a9ed;
    height: 212px;
  }
</style>
